@media screen and (max-width: 320px) {
  html {
    font-size: 32px !important;
  }
}
@media screen and (min-width: 750px) {
  html {
    font-size: 75px !important;
  }
}
body {
  min-width: 320px;
  max-width: 1080px;
  margin: 0 auto;
  background: #f6f6f6;
  font-size: 0.373333rem;
  font-family: -apple-system, Helvetica, sans-serif;
  line-height: 1.5;
  color: #666;
}
/* 移动端初始化样式 */
/*点击高亮我们需要清除清除 设置为transparent 完成透明*/
* {
  -webkit-tap-highlight-color: transparent;
}
/*在移动端浏览器默认的外观在iOS上加上这个属性才能给按钮和输入框自定义样式*/
input {
  -webkit-appearance: none;
}
/*禁用长按页面时的弹出菜单*/
img,
a {
  -webkit-touch-callout: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* 页面top-app app跳转区域 */
.top-to-app {
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  min-width: 320px;
  max-width: 1080px;
  height: 1.2rem;
  background-color: #333;
  color: #fff;
  line-height: 1.2rem;
  text-align: center;
}
.top-to-app .close {
  float: left;
  width: 8%;
  cursor: pointer;
}
.top-to-app .close img {
  width: 0.266667rem;
  height: 0.266667rem;
  vertical-align: middle;
}
.top-to-app .logo {
  float: left;
  width: 10%;
}
.top-to-app .logo img {
  width: 0.8rem;
  height: 0.8rem;
  vertical-align: middle;
}
.top-to-app .open {
  float: left;
  width: 57%;
}
.top-to-app .open-click {
  float: left;
  width: 25%;
  background-color: #f63515;
  cursor: pointer;
}
/* 页面顶部header-login 区域 */
header {
  z-index: 10;
  position: fixed;
  width: 100%;
  min-width: 320px;
  max-width: 1080px;
  top: 1.2rem;
  background-color: transparent;
  /* background-color: #c82519; */
}
.login {
  box-sizing: border-box;
  position: relative;
  height: 1.173333rem;
  padding: 0 1.066667rem;
  overflow: hidden;
  line-height: 1.173333rem;
  /* background-color: #c82519; */
  background-color: transparent;
}
.login .login-left {
  position: absolute;
  left: 0;
  width: 1.066667rem;
  height: 1.173333rem;
}
.login .login-left img {
  width: 0.533333rem;
  height: 0.48rem;
  margin: 0.373333rem 0 0 0.4rem;
}
.login .login-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.066667rem;
  height: 1.173333rem;
  color: #fff;
}
.login .login-search {
  position: relative;
  /* width: 100%; */
  height: 0.8rem;
  background-color: #fff;
  margin: 0.186667rem 0.4rem;
  line-height: 0.8rem;
  border-radius: 0.4rem;
}
.login .login-search .JD {
  /* display: block; */
  float: left;
  position: relative;
  width: 0.533333rem;
  height: 0.4rem;
  margin: 0.213333rem 0.213333rem 0 0.4rem;
  background: url(../images/logo2.png) no-repeat 0 0;
  background-size: 0.533333rem auto;
}
.login .login-search .JD::after {
  content: "";
  display: block;
  position: absolute;
  right: -0.213333rem;
  width: 1px;
  height: 0.4rem;
  background-color: #ccc;
}
.login .login-search .search-icon {
  display: inline-block;
  width: 0.48rem;
  height: 0.4rem;
  margin: 0.213333rem 0 0 0.4rem;
  background: url(../images/jd-sprites.png) no-repeat -2.16rem 0;
  background-size: 5.306667rem auto;
}
.login .login-search a {
  display: block;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  padding-left: 2.186667rem;
  width: 100%;
  height: 0.8rem;
  font-size: 0.32rem;
  text-decoration: none;
  color: #999;
  border-radius: 0.4rem;
  background-color: transparent;
}
/* 页面main-banner区域 */
/* main {
    overflow-y: auto;
  } */
.banner {
  position: relative;
  width: 100%;
  height: 6.746667rem;
  margin-top: 1.2rem;
  overflow: hidden;
}
.banner .banner-bg {
  z-index: -1;
  position: absolute;
  top: 0;
  left: -25%;
  width: 150%;
  height: 3.866667rem;
  background-image: linear-gradient(to right, #cf2d1f, #c82519);
  border-bottom-left-radius: 100%;
  border-bottom-right-radius: 100%;
}
.banner .banner-box {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 1.6rem 3.33333% 0;
}
.banner .banner-box .banner-content {
  position: relative;
  width: 100%;
  height: 4.986667rem;
  overflow: hidden;
}
.banner .banner-box .banner-content .banner-item {
  position: absolute;
  left: 100%;
  width: 100%;
  height: 4.986667rem;
}
.banner .banner-box .banner-content .banner-item:nth-of-type(1) {
  left: -100%;
}
.banner .banner-box .banner-content .banner-item:nth-of-type(2) {
  left: 0;
}
.banner .banner-box .banner-content .banner-item a {
  display: block;
  width: 100%;
  /* height: 187px; */
  line-height: 0;
  border-radius: 0.16rem;
  overflow: hidden;
}
.banner .banner-box .banner-content .banner-item a img {
  width: 100%;
}
.banner .banner-box .banner-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.16rem;
  overflow: hidden;
}
.banner .banner-box .banner-dot .dot-item {
  float: left;
  width: 0.266667rem;
  height: 0.266667rem;
  margin-right: 0.106667rem;
  border-radius: 50%;
  bottom: 0.16rem;
  background-color: rgba(255, 255, 255, 0.6);
}
.banner .banner-box .banner-dot li.current {
  background-color: #f63515;
}
/* 页面main-ad区域 */
.activity {
  position: relative;
  line-height: 0;
  overflow: hidden;
}
.activity .activity-item {
  float: left;
  width: 33.33333%;
}
.activity .activity-item a {
  display: block;
}
.activity .activity-item a img {
  width: 100%;
}
/* 页面main-nav区域 */
.nav {
  display: flex;
  flex-wrap: wrap;
}
.nav li {
  width: 20%;
}
.nav li a {
  display: block;
  text-decoration: none;
  text-align: center;
  color: #333;
}
.nav li a img {
  width: 1.546667rem;
  height: 1.546667rem;
  margin-top: 0.213333rem;
}
.nav li a p {
  margin-top: 0.106667rem;
  color: #666;
  font-size: 0.32rem;
}
/* 页面main-new 新人专享区域 */
.new-people {
  margin: 0.266667rem;
}
.new-people ul {
  overflow: hidden;
}
.new-people ul li {
  float: left;
  width: 50%;
}
.new-people ul li:nth-of-type(1) {
  float: left;
  width: 100%;
}
.new-people ul li a {
  display: block;
}
.new-people ul li a img {
  width: 100%;
}
/* 页面main-new 新人专享区域 */
/* 页面main-goods 商品区域 */
.goods {
  margin: 0.266667rem;
  overflow: hidden;
}
.goods .goods-item {
  float: left;
  width: 49%;
  border-radius: 0.266667rem;
  margin-bottom: 2%;
  overflow: hidden;
  background-color: #fff;
}
.goods .goods-item:nth-of-type(2n + 1) {
  margin-right: 2%;
}
.goods .goods-item .goods-img {
  width: 6.24rem;
  height: 6.24rem;
}
.goods .goods-item .introduce {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
}
.goods .goods-item .introduce .goods-icon {
  position: absolute;
  /* left: 0; */
  /* float: left; */
  width: 0.586667rem;
  /* margin-right: 8px; */
  /* vertical-align: middle; */
}
.goods .goods-item .introduce span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /*设置p元素最大4行，父元素需填写宽度才明显*/
  text-overflow: ellipsis;
  overflow: hidden;
  /* autoprefixer: off */
  -webkit-box-orient: vertical;
  /* autoprefixer: on */
  /*因为代码环境的关系-webkit-box-orient被过滤掉了 autoprefixer 这个关键字可以免除被过滤的动作*/
  word-break: break-all;
  text-indent: 0.64rem;
  color: #666;
}
.goods .goods-item .price {
  margin: 0;
  margin-bottom: 0.533333rem;
  overflow: hidden;
}
.goods .goods-item .price span:nth-of-type(1) {
  float: left;
  color: #f63515;
}
.goods .goods-item .price span:nth-of-type(2) {
  float: right;
  display: block;
  width: 1.546667rem;
  height: 0.826667rem;
  margin-right: -0.133333rem;
  line-height: 0.826667rem;
  /* font-size: 14px; */
  text-align: center;
  border-radius: 0.426667rem 0 0.426667rem 0.426667rem;
  background-color: #f0f2f5;
  color: #666;
}
/* 页脚footer-nav 区域 */
footer {
  position: fixed;
  width: 100%;
  min-width: 320px;
  max-width: 1080px;
  overflow: hidden;
  bottom: 0;
  background-color: #fff;
  box-shadow: 0 -1px 1px 1px #eee;
}
.footer-nav {
  overflow: hidden;
}
.footer-nav li {
  float: left;
  width: 20%;
}
.footer-nav li a {
  display: block;
}
.footer-nav li a img {
  display: block;
  width: 90%;
  margin: 0 auto;
}
